﻿@using Sprint1.Models;
@model IEnumerable<Course>

@{
    ViewBag.Title = "My Courses";
}
<div style="font-family:Arial">
    <h2>My Courses</h2>

    <ul>
        @foreach (Course course in @Model)
        {
            <li>
                @Html.ActionLink(course.Name, "CourseDetails", new { CourseId = course.Id })
            </li>
        }
    </ul>
</div>
<p> @Html.ActionLink("Create New Course", "CreateCourse") </p>
